package com.bys.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bys.generator.base.BaseModel;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* PackageName:  com.bys.system.model
* ClassName:    WechatMenuModel
* Description:  菜单实体类
* Author:       bys
* Date:         2023-03-31
**/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "wechat_menu", autoResultMap = true)
@Schema(description = "菜单实体类")
public class WechatMenuModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    @Schema(description = "上级id")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "菜单名称")
    @TableField("`name`")
    private String name;

    @Schema(description = "类型")
    @TableField("`type`")
    private String type;

    @Schema(description = "网页 链接，用户点击菜单可打开链接")
    @TableField("url")
    private String url;

    @Schema(description = "菜单KEY值，用于消息接口推送")
    @TableField("meun_key")
    private String meunKey;

    @Schema(description = "排序")
    @TableField("sort")
    private Integer sort;


}